						
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>登录</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<!-- Add by Kravis Liu 2014.09.22 -->
	<link rel="stylesheet" href="/css/base.css" />
	<link rel="stylesheet" href="/css/login.css" />
	<link rel="stylesheet" media="screen" href="/css/validate.css">

	<script src="/js/jquery-1.11.1.min.js"></script>
	<script src="/js/jqueryValidation/jquery.validate.min.js"></script>	
	 <script src="http://webapi.amap.com/maps?v=1.2&key=662b7a5d373bccb29453167d08245aef" type="text/javascript"></script>
	<script type="text/javascript">
	  
	    var mapObj;
        function getCoordinate(location){
            var geocoderOption = {
                range:300,//范围
                crossnum:2,//道路交叉口数
                roadnum:3,//路线记录数
                poinum:2//POI点数
            };
            var geocoder = new AMap.Geocoder(geocoderOption);
            geocoder.geocode(location, function(data){
                var x = (data.list)[0].x;
                var y = (data.list)[0].y;
                alert(x, y);
            });
        }			 
	</script>
</head>

<body>

<div>
        <input type="text" id="input1">
        <button type="button" onclick="getCoordinate(document.getElementById('input1').value)">查询坐标</button>
    </div>
    <div id="result"></div>
    <div id="container"></div>
    
	<!-- <footer></footer> -->
</div>
</html>


               						

	